package nil.ed.benchmark.stomp.bean;

import org.springframework.messaging.MessageHandler;
import org.springframework.messaging.simp.stomp.StompSession;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author lidelin
 */
public class SessionBean {

    private StompSession session;

    private Map<String, MessageHandler> handlerMap = new ConcurrentHashMap<>();

    public SessionBean(StompSession session) {
        this.session = session;
    }

    public Map<String, MessageHandler> getHandlerMap() {
        return handlerMap;
    }

    public StompSession getSession() {
        return session;
    }
}
